import { View, Text } from "@tarojs/components";
import "./index.less";

const Tag = ({ children, type = "primary", small=false }) => {
  return (
    <View className={`tag ${type} ${small?"small":""}`}>
      <Text className="tag-label">{children}</Text>
    </View>
  );
};

export default Tag;
